<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<!--
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements.  See the NOTICE file
distributed with this work for additional information
regarding copyright ownership.  The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
with the License.  You may obtain a copy of the License at

  http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing,
software distributed under the License is distributed on an
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, either express or implied.  See the License for the
specific language governing permissions and limitations
under the License.
-->
<html>

<head>
  <title>Flink Query Interface</title>

  <meta http-equiv="content-type" content="text/html; charset=UTF-8">

  <link rel="stylesheet" type="text/css" href="css/nephelefrontend.css" />
  <link rel="stylesheet" type="text/css" href="css/pactgraphs.css" />
  <link rel="stylesheet" type="text/css" href="css/graph.css" />
  <link rel="stylesheet" type="text/css" href="css/overlay.css" />
  <link rel="stylesheet" type="text/css" href="css/bootstrap.css" /> <!-- Changed Stuff -->
  <script type="text/javascript" src="js/jquery-2.1.0.js"></script>
  <script type="text/javascript" src="js/graphCreator.js"></script>
  <script type="text/javascript" src="js/d3.js" charset="utf-8"></script>
  <script type="text/javascript" src="js/dagre-d3.js"></script>
  <script type="text/javascript" src="js/bootstrap.min.js"></script>
  <script type="text/javascript" src="js/jquery.tools.min.js"></script>
  
  
  <script type="text/javascript" src="js/program.js"></script>
  
</head>

<body>
    <div class="mainHeading" style="min-width: 1225px;">
      <h1 style="margin-top:0"><img src="img/flink-logo.png" width="100" height="100" alt="Flink Logo" />Flink Web Submission Client
      <div style="position:absolute; top:40px; right:110px;">
		  <button id="zoomIn" type="button" class="btn btn-default">Zoom In</button>
		  <button id="zoomOut" type="button" class="btn btn-default">Zoom Out</button>
		</div>
      </h1>
    </div>

    <!-- the main panel with the jobs list and the preview pane -->
    <div style="position: absolute; top: 110px; bottom: 210px; left: 0px; right: 0px; min-width: 1225px;">
      <div id="jobsContents" class="boxed" style="position: absolute; top: 0px; bottom: 0px; left: 0px; width: 450px; overflow: auto;"></div>
      <div class="boxed" style="position: absolute; top: 0px; bottom: 0px; left: 460px; right: 0px; overflow: auto;">
        <div id="mainCanvas" class="canvas" style="position: relative; height: 100%"></div>
      </div>
    </div>

    <!-- the footer containing the box with the run properties and the box with the upload field -->
    <div class="footer" style="min-width: 1225px;">
    
      <div class="boxed" style="float: left; width: 700px; height: 200px; position: relative;">
        <h3>Select program...</h3>
        <div style="margin-top: 30px;">
          <div>
          	<div id="planDescription"></div>
          </div>
          <div style="text-align: right;">
            <span class="formLabel">Arguments:</span>
            <input id="commandLineArgsField" type="text" name="commandLine" style="width: 580px;"/>
          </div>
          <div class="spaced" style="margin-left: 20px;">
            <input type="checkbox" id="showPlanCheck" checked="checked"><span class="formLabel">Show optimizer plan</span>
            <div id="suspendOption"><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><input type="checkbox" id="suspendJobDuringPlanCheck" checked="checked"><span class="formLabel">Suspend execution while showing plan</span></div>
          </div>
        </div>
        <div class="footer" style="text-align: right;">
          <span id="run_error_text" class="error_text"></span>
          <input id="run_button" type="button" value="Run Job" style="width: 75px; margin-left: 100px;"/>
        </div>
      </div>
      
      <div class="boxed" style="float: left; width: 500px; height: 150px; position: relative;">
        <h3>Select a new program to upload...</h3>
        <form id="upload_form" action="jobs" enctype="multipart/form-data" method="POST">
          <div style="position: relative; margin-top: 30px;">
             <input id="upload_file_name_text" type="text" name="file_name" disabled="disabled" style="position: absolute; top: 0px; right: 85px; width: 380px; z-index: 3;"/>
             <input type="button" value="Browse" style="width: 75px; position: absolute; right: 0px; top: 0px; z-index: 1;" />
             <input id="upload_file_input" class="translucent" type="file" name="upload_jar_file" style="position: absolute; right: 0px; top: 0px; height: 30px; width=75px; z-index: 2;" />
          </div>
        </form>
        <div class="footer" style="text-align: right;">
          <span id="upload_error_text" class="error_text"></span>
          <input id="upload_submit_button" type="button" value="Upload" style="width: 75px; margin-left: 100px;"/>
        </div>
      </div>
      
    </div>
    
    <!-- the overlay -->
    <div class="simple_overlay" id="propertyO">
	  <div id="propertyCanvas" class="propertyCanvas">
	  </div>
	</div>
</body>
</html>
